<?php
include('includes/config_db.php');
include('includes/conect.php');
$conexao = conexao();
session_start();

if( (!isset($_SESSION['idUsuario'])) && (!isset($_SESSION['nome'])) ){
    Header("Location: login.php");        
}//FIM IF    
?>
<!DOCTYPE html>
<!--[if IE 8]><html lang="en" class="ie8"></html><![endif]-->
<!--[if IE 9]><html lang="en" class="ie9"></html><![endif]-->
<!--[if !IE]><!-->
<html lang="pt-br">
<!--<![endif]-->

<head>
    <meta charset="utf-8" />
    <title>Admin Lab Dashboard</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta content="" name="description" />
    <meta content="" name="author" />
    <link href="./assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="./assets/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" />
    <link href="./assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link href="./css/style.min.css" rel="stylesheet" />
    <link href="./css/style_responsive.css" rel="stylesheet" />
    <link href="./css/style_default.css" rel="stylesheet" id="style_color" />
    <link href="./assets/fancybox/source/jquery.fancybox.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="./assets/uniform/css/uniform.default.css" />
    <link href="./assets/fullcalendar/fullcalendar/bootstrap-fullcalendar.css" rel="stylesheet" />
    <link href="./assets/jqvmap/jqvmap/jqvmap.css" media="screen" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body class="fixed-top">
    <div id="header" class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container-fluid">
                <a class="brand" href="index.php">
                    <img src="../imagem/logo.png" alt="logo" class="center" width="130"/>
                </a>
                <a class="btn btn-navbar collapsed" id="main_menu_trigger" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="arrow"></span>
                </a>
                <div id="top_menu" class="nav notify-row">


</div>
<div class="top-nav">
<ul class="nav pull-right top-menu">
<li class="dropdown mtop5">
    <a class="dropdown-toggle element" data-placement="bottom" data-toggle="tooltip" href="#" data-original-title="Chat">
        <i class="icon-comments-alt"></i>
    </a>
</li>
<li class="dropdown mtop5">
     <a class="dropdown-toggle element" data-placement="bottom" data-toggle="tooltip" href="#" data-original-title="Help">
         <i class="icon-headphones"></i>
     </a>
 </li>
 <li class="dropdown">
     <a href="#" class="dropdown-toggle" data-toggle="dropdown">
         <img src="./img/avatar1_small.jpg" alt="" />
         <span class="username"><?php echo $_SESSION['nome']; ?></span>
         <b class="caret"></b>
     </a>
     <ul class="dropdown-menu">
         <li>
             <a href="perfil"><i class="icon-user"></i> Meu Cadastro</a>
         </li>
         <li>
             <a href="#"><i class="icon-tasks"></i> My Tasks</a>
         </li>
         <li>
             <a href="#"><i class="icon-calendar"></i> Calendar</a>
         </li>
         <li class="divider"></li>
         <li>
             <a href="logout.php"><i class="icon-key"></i> Sair</a>
         </li>
     </ul>
 </li>
</ul>
                </div>
            </div>
        </div>
    </div>
    <div id="container" class="row-fluid">
        <div id="sidebar" class="nav-collapse collapse">
            <div class="sidebar-toggler hidden-phone"></div>
            <div class="navbar-inverse">
                <form class="navbar-search visible-phone" />
                <input type="text" class="search-query" placeholder="Search" />
                </form>
            </div>
<ul class="sidebar-menu">
<li class="has-sub">
    <a href="javascript:;" class="">
    <span class="icon-box">
    <i class="icon-tasks"></i>
    </span>Pré Cadastros<span class="arrow"></span>
    </a>
    <ul class="sub">
    <li class="active">
        <a class="" href="categorias">Categorias</a>
     </li>
    <li class="active">
        <a class="" href="cidades">Cidades</a>
        </li>
    </ul>
</li>
<li>
<a class="" href="administrar-usuarios">
<span class="icon-box">
    <i class="icon-user"></i>
   </span>Administrar Usuários</a>
</li>
<li>
<a class="" href="pacotes">
<span class="icon-box">
    <i class="icon-briefcase"></i>
   </span>Pacotes</a>
</li>
<li>
<a class="" href="empresa">
<span class="icon-box">
    <i class="icon-briefcase"></i>
   </span>Sobre a Empresa</a>
</li>
<li>
<a class="" href="marcas">
<span class="icon-box">
    <i class="icon-briefcase"></i>
   </span>Cadastro de Marcas</a>
</li>
<li>
<a class="" href="enquete">
<span class="icon-box">
    <i class="icon-pencil"></i>
   </span>Notícias</a>
</li>

</ul>
        </div>
        <div id="main-content">
            <div class="container-fluid">
            <div class="row-fluid"></div>
            <?php
                if(isset($_GET['Conteudo'])){
                    include 'paginas/'.$_GET['Conteudo'].'.php';
                }//FIM IF
                else{
                    include 'paginas/home.php';
                }//FIM ELSE IF
            ?>
            </div>
        </div>
    </div>
    <div id="footer">2013 &copy; Admin Lab.
        <div class="span pull-right">
        <span class="go-top">
           <i class="icon-arrow-up"></i>
        </span>
        </div>
    </div>
    <script src="./js/jquery-1.8.3.min.js"></script>
    <script src="./assets/jquery-slimscroll/jquery-ui-1.9.2.custom.min.js"></script>
    <script src="./assets/jquery-slimscroll/jquery.slimscroll.min.js"></script>
    <script src="./assets/fullcalendar/fullcalendar/fullcalendar.min.js"></script>
    <script src="./assets/bootstrap/js/bootstrap.min.js"></script>
    <script src="./js/jquery.blockui.js"></script>
    <script src="./js/jquery.cookie.js"></script>
    <!--[if lt IE 9]><script src="./js/excanvas.js"></script><script src="./js/respond.js"></script><![endif]-->
    <script src="./assets/jqvmap/jqvmap/jquery.vmap.js" type="text/javascript"></script>
    <script src="./assets/jqvmap/jqvmap/maps/jquery.vmap.russia.js" type="text/javascript"></script>
    <script src="./assets/jqvmap/jqvmap/maps/jquery.vmap.world.js" type="text/javascript"></script>
    <script src="./assets/jqvmap/jqvmap/maps/jquery.vmap.europe.js" type="text/javascript"></script>
    <script src="./assets/jqvmap/jqvmap/maps/jquery.vmap.germany.js" type="text/javascript"></script>
    <script src="./assets/jqvmap/jqvmap/maps/jquery.vmap.usa.js" type="text/javascript"></script>
    <script src="./assets/jqvmap/jqvmap/data/jquery.vmap.sampledata.js" type="text/javascript"></script>
    <script src="./assets/jquery-knob/js/jquery.knob.js"></script>
    <script src="./assets/flot/jquery.flot.js"></script>
    <script src="./assets/flot/jquery.flot.resize.js"></script>
    <script src="./assets/flot/jquery.flot.pie.js"></script>
    <script src="./assets/flot/jquery.flot.stack.js"></script>
    <script src="./assets/flot/jquery.flot.crosshair.js"></script>
    <script src="./js/jquery.peity.min.js"></script>
    <script type="text/javascript" src="./assets/uniform/jquery.uniform.min.js"></script>
    <script src="./js/scripts.js"></script>
    <script src="./assets/fancybox/source/jquery.fancybox.pack.js"></script>
    <script type="text/javascript" src="./assets/ckeditor/ckeditor.js"></script>
    <script>

        jQuery(document).ready(function () {
           //App.setMainPage(true);
            App.init()
        });
    </script>
<script>
$(document).ready(function() { 
    setTimeout(function() { 
        $('.alert').fadeOut(); 
 }, 5000); 
});
</script>
</body>
</html>